﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HomeSite.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TimeTableManagement.Entities.Tb_Slot_Room>>" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" 
        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
        GroupBoxCaptionOffsetY="-28px" 
        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
        <ContentPaddings Padding="14px" />
        <PanelCollection>
<dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
<table style="width:100%" id="t1" class="example table-autosort
 table-autofilter table-autopage:10 
 table-stripeclass:alternate 
 table-page-number:t1page table-page-count:t1pages 
 table-filtered-rowcount:t1filtercount 
 table-rowcount:t1allcount">
 <thead>
    <tr>
        <th class="table-sortable:alphanumeric table-filterable">
            Room
        </th>
        <th class="table-sortable:alphanumeric table-filterable">
            Slot
        </th>
        <th class="table-sortable:alphanumeric">
            Action
        </th>
        <th class="table-sortable:alphanumeric">
            Date
        </th>
        <th class="tablecell"></th>
    </tr>
</thead>
<tbody>
<% foreach (var item in Model)
   { %>
   <tr>
        <td class="tablecell">
            <%: Html.DisplayFor(modelItem => item.Tb_Room.name) %>
        </td>
        <td class="tablecell">
            <%: Html.DisplayFor(modelItem => item.Tb_Slot.slot) %>
        </td>
        <td class="tablecell">
            <%: Html.DisplayFor(modelItem => item.action) %>
        </td>
        <td class="tablecell">
        <%: TimeTableManagement.Entities.Tb_Slot_Room.getDay(item.date) %>
            <%--<%: Html.DisplayFor(modelItem => item.date) %>--%>
        </td>
        <td class="tablecell">
            <%: Html.ActionLink("Edit", "Edit",new { id=item.id }) %> |
            <%: Html.ActionLink("Details", "Details", new { id = item.id })%> |
            <%: Html.ActionLink("Delete", "Delete", new { id = item.id })%>
        </td>
    </tr>
<% } %>
</tbody>
<tfoot>
	<tr>
		<td class="table-page:previous" style="cursor:pointer; text-align:right"><img src="../../Content/iconprevious.png" /></td>
		<td style="text-align:center" colspan="3" class="table-page-number:t1page">Page <span id="t1page"></span>&nbsp;of&nbsp;<span id="t1pages"></span></td>
        <td class="table-page:next" style="cursor:pointer; text-align:left"> <img src="../../Content/iconnext.png" /></td>
	</tr>
</tfoot>
</table>

</dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="leftmenu" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="menuright" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
